<%@ page contentType="text/plain;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>
<json:object>
    <json:property name="page"><s:property value="page.pageNo"/></json:property>
    <json:property name="total"><s:property value="page.totalCount"/></json:property>
    <json:array name="rows">
        <s:iterator value="page.result" id="streamData">
        <json:object>
            <json:property name="id" ><s:property value="#streamData.id" escape="false"/></json:property>
            <json:property name="fatherId" ><s:property value="#streamData.fatherId" escape="false"/></json:property>
            <json:property name="streamName" escapeXml="false"><a href="http://www.cutv.com/demo/live_test.swf?url=rtmp://<s:property value="#streamData.streamIp"/>/live/<s:property value="#streamData.streamName"/>" target="_blank"><s:property value="#streamData.streamName" escape="false"/></a></json:property>
            <json:property name="streamIp" escapeXml="false"><a href="http://<s:property value="#streamData.streamIp"/>:8080/stat" target="_blank"><s:property value="#streamData.streamIp" escape="false"/></a></json:property>
            <json:property name="streamType" ><s:property value="#streamData.streamType" escape="false"/></json:property>
            <json:property name="status" ><s:property value="@com.iqiyi.pps.epg.core.model.stream.LiveChannelStream@LIVE_CHANNEL_STREAM_STATUS_MAP.get(#streamData.status)" escape="false"/></json:property>
            <json:property name="bitRate" ><s:property value="#streamData.bitRate" escape="false"/></json:property>
            <json:property name="inputBits" ><s:property value="#streamData.inputBits" escape="false"/></json:property>
            <json:property name="outputBits" ><s:property value="#streamData.outputBits" escape="false"/></json:property>
            <json:property name="aspectRatio" ><s:property value="#streamData.aspectRatio" escape="false"/></json:property>
            <json:property name="screenSize" ><s:property value="#streamData.screenSize" escape="false"/></json:property>
            <json:property name="peerCount" ><s:property value="#streamData.peerCount" escape="false"/></json:property>
            <json:property name="isEnable" ><s:property value="#streamData.isEnable" escape="false"/></json:property>
            <json:property name="addTime" ><s:property value="#streamData.addTime" escape="false"/></json:property>
            <json:property name="updateTime" ><s:property value="#streamData.updateTime" escape="false"/></json:property>
            <json:property name="create" escapeXml="false">
                <a href="javascript:void(0);" onclick="createFlv('<s:property value="#streamData.streamName"/>','<s:property value="#streamData.streamIp" />')">FLV</a>
                <a href="javascript:void(0);" onclick="createTs('<s:property value="#streamData.streamName"/>','<s:property value="#streamData.streamIp" />')">TS</a>
                <a href="javascript:void(0);" onclick="createP2P('<s:property value="#streamData.streamName"/>','<s:property value="#streamData.streamIp" />')">P2P</a>
            </json:property>
        </json:object>
        </s:iterator>
    </json:array>
</json:object>